home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11449 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: news.ichange.com!newsmaster
  2. From: Jesse Liberty <jl@staff.ichange.com>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Can you overload a constructor?
  5. Date: Thu, 14 Mar 1996 10:35:56 -0500
  6. Organization: AT&T
  7. Message-ID: <31483CDC.4B0C@staff.ichange.com>
  8. References: <Do859K.K9B@watserv3.uwaterloo.ca>
  9. NNTP-Posting-Host: 140.244.99.60
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (Win95; I)
  14. CC: jl@staff.ichange.com
  15.  
  16. jfournie@sciborg.uwaterloo.ca wrote:
  17. > Greetings,
  18. > I am new to C++ and just wanted to make sure it
  19. > was OK to overload a constructor.  gnu c++
  20. > doesn't have a problem with it, but is it normally
  21. > done?
  22. > It most certainly is very normal. The purpose of a constructor is to 
  23. create a valid object. Often there is more than one way to do this; for 
  24. example you can imagine a rectangle object which can be initialized 
  25. either with a point indicating its upper left corner and its width and 
  26. length, or with 2 points indicating upper left and lower right.  
  27.  
  28.  
  29.  
  30. -- 
  31. ------
  32. Jesse Liberty [AT&T New Media Services]
  33. jl@staff.ichange.com    ZDNet: 72241,72
  34. Teach Yourself C++ In 21 Days. Sams 1994
  35. Teach Yourself MORE C++ In 21 Days. Sams 1996
  36. Teach Yourself ANSI C++ In 21 Days. Sams 1996
  37. C++: An Introduction To Programming. Que 1996
  38.